package com.party.core.model.photo;

import java.io.Serializable;

/**
 * @Description: 相册操作排行输出
 * @Author: yangshoukun
 * @Date: 2018/6/6 10:58
 */
public class PhotosRankOutput implements Serializable {

    private static final long serialVersionUID = -5516223763712341446L;
    // 用户id
    private String memberId;
    // 用户logo
    private String logo;
    // 用户昵称
    private String realname;
    // 用户排行
    private Integer rankNum;
    // 用户操作次数
    private Integer operateNum;

    public String getMemberId() {
        return memberId;
    }

    public void setMemberId(String memberId) {
        this.memberId = memberId;
    }

    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public Integer getRankNum() {
        return rankNum;
    }

    public void setRankNum(Integer rankNum) {
        this.rankNum = rankNum;
    }

    public Integer getOperateNum() {
        return operateNum;
    }

    public void setOperateNum(Integer operateNum) {
        this.operateNum = operateNum;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof PhotosRankOutput)) return false;

        PhotosRankOutput that = (PhotosRankOutput) o;

        if (memberId != null ? !memberId.equals(that.memberId) : that.memberId != null) return false;
        if (logo != null ? !logo.equals(that.logo) : that.logo != null) return false;
        if (realname != null ? !realname.equals(that.realname) : that.realname != null) return false;
        if (rankNum != null ? !rankNum.equals(that.rankNum) : that.rankNum != null) return false;
        return operateNum != null ? operateNum.equals(that.operateNum) : that.operateNum == null;
    }

    @Override
    public int hashCode() {
        int result = memberId != null ? memberId.hashCode() : 0;
        result = 31 * result + (logo != null ? logo.hashCode() : 0);
        result = 31 * result + (realname != null ? realname.hashCode() : 0);
        result = 31 * result + (rankNum != null ? rankNum.hashCode() : 0);
        result = 31 * result + (operateNum != null ? operateNum.hashCode() : 0);
        return result;
    }

    @Override
    public String toString() {
        return "PhotosRankOutput{" +
                "memberId='" + memberId + '\'' +
                ", logo='" + logo + '\'' +
                ", realname='" + realname + '\'' +
                ", rankNum=" + rankNum +
                ", operateNum=" + operateNum +
                '}';
    }
}
